home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
015a
/
5_memchk.zip
/
M.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-07-16
|
2KB
|
55 lines
@echo off
cls
REM Set screen colors to bright yellow on blue.
echo
cls
C:
REM Edit the "REM" out of next line for separate directory in your Path statement
REM cd \BIN
C:\DOS\Mem /C | C:\DOS\More
REM Set colors to normal grey on black
echo
REM Insert a blank line, "echo <Alt-255>"
echo
echo
Do you want this saved to a file,
Y/
N
?
Keypress yn
If errorlevel 2 goto NO
If errorlevel 1 goto YES
REM Quit if any other key was pressed.
goto NO
:YES
Input Memory.mnu Memory.tpl C:\Save#9.bat
Copy C:\Save#9.bat C:\Save#9.#9# >nul
REM If Save#9.bat was 0-length DOS did not copy it, so Save#9.#9# doesn't exist
If not exist C:\Save#9.#9# goto NO
REM Move the cursor up to overwrite last prompt message.
echo A
REM Reset screen colors to black on cyan and "erase" prompt with line of spaces
echo
REM Insert another blank line
echo
REM Move the cursor up five lines to position exit message.
echo A
echo 22H
┌───────────────────────────────────┐
echo 22H
│
Memory check saved to file with
│
echo 22H
│
contents of your Config.sys and
│
echo 22H
│
Autoexec.bat files.
│
echo 22H└───────────────────────────────────┘
Call C:\Save#9
del C:\Save#9.*
echo
echo
Would you like to review any saved files now,
Y/
N
?
Keypress yn
If errorlevel 2 goto NO
If errorlevel 1 goto SEEFILES
REM Quit if any other key was pressed.
goto NO
:SEEFILES
Filectrl C:\Memory*.*
:NO
REM Move the cursor up to overwrite last prompt message.
echo A
REM Reset screen colors to black on cyan and "erase" prompt.
echo
:END